package cn.smart.epic.common.constant.tips;

import cn.smart.epic.common.exception.BizExceptionEnum;

/**
 * @Auther Uncle_Z
 * @date 2017/9/19 22:30
 * @Email:2545375@qq.com
 * @Descrition 返回给前台的错误提示
 * @since 1.0
 */

public class ErrorTip extends Tip {

    public ErrorTip(int code, String message) {
        super();
        this.code=code;
        this.message=message;
    }

    public ErrorTip(BizExceptionEnum bizExceptionEnum) {
        this.code=bizExceptionEnum.getFriendlyCode();
        this.message=bizExceptionEnum.getFriendlyMsg();
    }
}
